/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.common.view;

import android.content.Context;
import android.text.TextWatcher;
import android.view.View.OnFocusChangeListener;
import android.widget.EditText;
import android.widget.TextView.OnEditorActionListener;

public final class CustEditText extends EditText {
    private int a = 0;
    private int b = 0;
    private int c = 0;

    public CustEditText(Context paramContext) {
        super(paramContext);
    }

    public void a() {
        this.a = 1;
    }

    public void b() {
        this.a |= 16;
    }

    public void addTextChangedListener(TextWatcher paramTextWatcher) {
        if (this.a == 17) {
            super.addTextChangedListener(paramTextWatcher);
            this.a = 0;
        }
        else {
            if (paramTextWatcher == null)
                return;
            removeTextChangedListener(paramTextWatcher);
        }
    }

    public void c() {
        this.b = 1;
    }

    public void d() {
        this.b |= 16;
    }

    public void setOnFocusChangeListener(View.OnFocusChangeListener paramOnFocusChangeListener) {
        if (this.b != 17)
            return;
        super.setOnFocusChangeListener(paramOnFocusChangeListener);
        this.b = 0;
    }

    public void e() {
        this.c = 1;
    }

    public void f() {
        this.c |= 16;
    }

    public void setOnEditorActionListener(TextView.OnEditorActionListener paramOnEditorActionListener) {
        if (this.c != 17)
            return;
        super.setOnEditorActionListener(paramOnEditorActionListener);
        this.c = 0;
    }
}